package com.nsoft.utils;

import android.app.ProgressDialog;
import android.content.Context;
import android.os.AsyncTask;

public class BookLoader extends AsyncTask<Void,Integer,Void> {
	
	private Context context;
	private ProgressDialog progressor=null;
	
	public BookLoader(Context ctx){
		this.context=ctx;
		this.progressor=new ProgressDialog(ctx);
	}
	
	@Override
	protected void onPreExecute() {
		progressor.setCancelable(false);
		progressor.setMessage(Constant.booklist.
				BLF_BOOK_LOADING);
		progressor.setProgressStyle(
				ProgressDialog.STYLE_HORIZONTAL);
		progressor.setProgress(0);
		progressor.setMax(100);
		progressor.setProgress(0);
		progressor.show();
	}
	
	@Override
	protected Void doInBackground(Void... arg0) {
		return null;
	}

}
